import java.util.Arrays;
import java.util.Scanner;
import java.util.Random;

public class test {

    //求两个数的最大数
    public static int cmpMax2(int a, int b, int c) {
        return cmpMax1(a, b) > c ? cmpMax1(a, b) : c;
    }
    public static int cmpMax1(int a, int b) {
        return a > b ? a : b;
    }
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c = scanner.nextInt();
        int ret1 = cmpMax1(a, b);
        int ret2 = cmpMax2(a, b, c);
        System.out.println("ret1="+ret1);
        System.out.println("ret2="+ret2);
    }

    //奇数在前偶数在后
    public static void main9(String[] args) {
        int[] arr1 = new int[] {1,2,3,4,5,6};
        int sz = arr1.length;
        int[] arr2 = new int[sz];
        int k = 0;
        for(int i = 0; i < sz; i++) {
            if(arr1[i] % 2 == 1) {
                arr2[k] = arr1[i];
                k++;
            }
        }
        for(int i = 0; i < sz; i++) {
            if(arr1[i] % 2 == 0) {
                arr2[k] = arr1[i];
                k++;
            }
        }
        System.out.println(Arrays.toString(arr2));
    }

    //n的阶乘
    public static void main8(String[] args) {
        int sum = 1;
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        for(int i = 1; i <= n; i++) {
            sum *= i;
        }
        System.out.println(sum);
    }

    //求阶乘和
    public static void main7(String[] args) {
        int i = 1;
        int sum = 0;
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        for(i = 1; i <= n; i++) {
            int sum1 = 1;
            for(int j = 1; j <= i; j++) {
                sum1 *= j;
            }
            sum += sum1;
        }
        System.out.println(sum);
    }

    //斐波那契数列
    public static int fib(int n) {
        int a = 1;
        int b = 1;
        int c = 0;
        if(n < 3) {
            return 1;
        }else {
            while((n - 2) != 0){
                c = a + b;
                a = b;
                b = c;
                n--;
            }
            return c;
        }
    }
    public static void main6(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int ret = fib(n);
        System.out.println(ret);
    }

    //找出一个数组中出现一次的数据，其他数据出现两次
    public static void main5(String[] args){
        int[] arr2 = new int[] { 1,2,1,5,2,6,7,5,6 };
        int find = 0;
        for(int x : arr2) {
            find ^= x;
        }
        System.out.println(find);
    }

    //打印整数的每一位
    public static void printErElem(int n) {
        if(n != 0) {
            printErElem(n / 10);
            System.out.print(n % 10+" ");
        }
    }
    public static void main4(String[] args){
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        printErElem(n);
        System.out.println();
    }

    //输入密码,有三次机会
    public static void main3(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int i = 3;
        int key = 1111;
        while(i != 0) {
            i--;
            int play = scanner.nextInt();
            if(play == key) {
                System.out.println("输入正确!");
                break;
            }else {
                System.out.println("输入错误! 还剩"+i+"次机会!");
            }
        }
        System.out.println("密码输入错误！");

    }

    //猜数字游戏
    public static void main2(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Random randow = new Random();
        int rand = randow.nextInt(100); //[0,100)默认生成为随机变化的数
        while(true) {
            System.out.println("请输入操作数：");
            int key = scanner.nextInt();
            if(key > rand) {
                System.out.println("猜大了!");
            }else if (key < rand){
                System.out.println("猜小了!");
            }else {
                System.out.println("猜对了!");
                System.out.println("生成数为："+rand);
                break;
            }
        }
    }
    //打印1-100中带有数字9的数
    public static void main1(String[] args) {
        int i = 0;
        for(i = 8; i < 100; i++) {
            if(i % 10 == 9 || i / 10 == 9) {
                System.out.print(i+" ");
            }
        }
        System.out.println();
    }
}
